]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Fix the offset calculation again
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 Mar 2015 15:08:24 +0000 (10:08 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 Mar 2015 15:19:55 +0000 (10:19 -0500)
We also need to skip over the \004.

https://bugzilla.gnome.org/show_bug.cgi?id=745521

src/shell-util.c

index d6815b9570b7c88a6e2f6524f51aabbc950cce16..f1afed071d6507f27c7937ab9f5981ecb43582d5 100644 (file)
@@ -229,7 +229,7 @@ shell_util_translate_time_string (const char *str)
     setlocale (LC_MESSAGES, locale);
 
   sep = strchr (str, '\004');
-  res = g_dpgettext (NULL, str, sep ? sep - str : 0);
+  res = g_dpgettext (NULL, str, sep ? sep - str + 1 : 0);
 
   setlocale (LC_MESSAGES, "");